<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
         $this->call(UsersTableSeeder::class);
    }
}
class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        DB::table('admin_menu')->insert([[
            'id' => '1',
            'name' => '文章菜单',
            'pid' => '0',
            'config' => '',
            'addtime' => time(),
        ],[
            'id' => '2',
            'name' => '菜单管理',
            'pid' => '0',
            'config' => '',
            'addtime' => time(),
        ],[
            'id' => '3',
            'name' => '文章分类',
            'pid' => '1',
            'config' => 'admin/articlecategory',
            'addtime' =>time(),
        ],[
            'id' => '4',
            'name' => '菜单列表',
            'pid' => '2',
            'config' => '',
            'addtime' =>time(),
        ],[
            'id' => '5',
            'name' => '文章回收站',
            'pid' => '1',
            'config' => '',
            'addtime' =>time(),
        ],[
            'id' => '6',
            'name' => '文章统计',
            'pid' => '1',
            'config' => '',
            'addtime' =>time(),
        ],[
            'id' => '7',
            'name' => '用户管理',
            'pid' => '0',
            'config' => '',
            'addtime' =>time(),
        ],[
            'id' => '8',
            'name' => '文章作者',
            'pid' => '7',
            'config' => '',
            'addtime' =>time(),
        ],[
            'id' => '9',
            'name' => '用户列表',
            'pid' => '7',
            'config' => '',
            'addtime' =>time(),
        ],[
            'id' => '10',
            'name' => '用户标签',
            'pid' => '7',
            'config' => '',
            'addtime' =>time(),
        ],[
            'id' => '11',
            'name' => '文章列表',
            'pid' => '1',
            'config' => 'article/index',
            'addtime' =>time(),
        ],[
            'id' => '12',
            'name' => '菜单回收站',
            'pid' => '2',
            'config' => '',
            'addtime' =>time(),
        ],[
            'id' => '13',
            'name' => '设置',
            'pid' => '0',
            'config' => '',
            'addtime' =>time(),
        ],[
            'id' => '14',
            'name' => '用户统计',
            'pid' => '7',
            'config' => '',
            'addtime' =>time(),
        ]]);
    }
}
